package com.xjoyt.pay.gateway.interfaces;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.xjoyt.pay.dto.ExecuteResult;
import com.xjoyt.pay.gateway.dto.TokenResult;
import com.xjoyt.pay.gateway.params.TokenParam;

public interface MainContract {

	/**
	 * 获取代理商token
	 * 
	 * @param tokenParam
	 * @return
	 */
	@RequestMapping(value = "getAccessToken/distributor", method = RequestMethod.POST)
	ExecuteResult<TokenResult> getDistributorAccessToken(TokenParam tokenParam);

	/**
	 * 获取商户token
	 * 
	 * @param tokenParam
	 * @return
	 */
	@RequestMapping(value = "getAccessToken/merchant", method = RequestMethod.POST)
	ExecuteResult<TokenResult> getMerchantAccessToken(TokenParam tokenParam);
}
